package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/getMemberReceiveAddress")
    List<MemberAddressVo> getMemberReceiveAddress(@RequestParam("memberId") Long memberId);

    @GetMapping("/member/memberreceiveaddress/getMember")
    MemberAddressVo getMember(@RequestParam("memberId") Long memberId);


}
